package com.wntms.gps.service.impl;

import java.util.List;

import com.wntms.gps.dao.FreightContractDaog;
import com.wntms.gps.pojo.FreightContract;
import com.wntms.gps.service.IFreightContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 货运单合同Service业务层处理
 * 
 * @author group 4
 * @date 2022-11-22
 */
@Service
public class FreightContractServiceImpl implements IFreightContractService
{
    @Autowired
    private FreightContractDaog freightContractDaog;

    /**
     * 查询货运单合同
     *
     * @param id 货运单合同主键
     * @return 货运单合同
     */
    @Override
    public FreightContract selectFreightContractById(String id)
    {
        return freightContractDaog.selectFreightContractById(id);
    }

    /**
     * 查询货运单合同列表
     *
     * @param freightContract 货运单合同
     * @return 货运单合同
     */
    @Override
    public List<FreightContract> selectFreightContractList(FreightContract freightContract)
    {
        return freightContractDaog.selectFreightContractList(freightContract);
    }

    /**
     * 新增货运单合同
     *
     * @param freightContract 货运单合同
     * @return 结果
     */
    @Override
    public int insertFreightContract(FreightContract freightContract)
    {
        return freightContractDaog.insertFreightContract(freightContract);
    }

    /**
     * 修改货运单合同
     *
     * @param freightContract 货运单合同
     * @return 结果
     */
    @Override
    public int updateFreightContract(FreightContract freightContract)
    {
        return freightContractDaog.updateFreightContract(freightContract);
    }

    /**
     * 批量删除货运单合同
     *
     * @param ids 需要删除的货运单合同主键
     * @return 结果
     */
    @Override
    public int deleteFreightContractByIds(String[] ids)
    {
        return freightContractDaog.deleteFreightContractByIds(ids);
    }

    /**
     * 删除货运单合同信息
     *
     * @param id 货运单合同主键
     * @return 结果
     */
    @Override
    public int deleteFreightContractById(String id)
    {
        return freightContractDaog.deleteFreightContractById(id);
    }
}
